import java.util.*;


public class MainTest2 {

	public static void main(String[] args) {
		
		Set<Cursus> cursussen = new HashSet<Cursus>();
		cursussen.add(new Cursus(5,"Word",100));
		cursussen.add(new Cursus(3,"Excel",110));
		cursussen.add(new Cursus(1,"Windows",90));
		cursussen.add(new Cursus(4,"Access",120));
		cursussen.add(new Cursus(2,"Powerp",80));
		
		
		
		int somPrijs=0;
		
		Iterator<Cursus> it= cursussen.iterator();
		while(it.hasNext()){
			Cursus c= it.next();
			somPrijs +=c.getPrijs();
		}
		System.out.println("Som van de prijzen: "+somPrijs);
	}

}
